<cfcomponent output="false">
	<cfscript>
		
		/**
		* 	Constructor Method
		* 	@name constructor
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return Void
		**/
		public Void function constructor() {
			
			variables.factory 	= Application.instance.factory;
			variables.error 	= variables.factory.getModels("Error");
		}
		
		/**
		* 	Domain Operator Less Then Method
		* 	@name lessThen
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function lessThen( String field , String param = "") {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|LT$| ' & arguments.param;
			}
			else {
				return ' LT$| ' & arguments.field;
			}
		}
		
		/**
		* 	Domain Operator Less Then or Equals Method
		* 	@name lessThenOrEquals
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function lessThenOrEquals( String field , String param = "" ) {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|LTE$| ' & arguments.param;
			}
			else {
				return ' LTE$| ' & arguments.field;
			}
		}
		
		/**
		* 	Domain Operator Greater Then Method
		* 	@name greaterThen
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function greaterThen( String field , String param = "" ) {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|GT$| ' & arguments.param;
			}
			else {
				return ' GT$| ' & arguments.field;
			}
		}
		
		/**
		* 	Domain Operator Greater Then or Equals Method
		* 	@name greaterThenOrEquals
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function greaterThenOrEquals( String field , String param = "" ) {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|GTE$| ' & arguments.param;
			}
			else {
				return ' GTE$| ' & arguments.field;
			}
		}
		
		/**
		* 	Domain Operator Equals Method
		* 	@name equals
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function equals( String field , String param = "" ) {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|EQ$| ' & arguments.param;
			}
			else {
				return ' EQ$| ' & arguments.field;
			}
		}
		
		/**
		* 	Domain Operator Not Equals Method
		* 	@name notEquals
		* 	@access public
		* 	@author Paulo Teixeira
		*	@date 2012-05-22
		*	@return String
		**/
		public String function notEquals( String field , String param = "" ) {
			if( Len( arguments.param ) ) {
				return arguments.field & ' $|NEQ$| ' & arguments.param;
			}
			else {
				return ' NEQ$| ' & arguments.field;
			}
		}
	</cfscript>
</cfcomponent>